num = 10
def demo():
    print("%d" % num)
    print("%s" % title)
    print("%s" % name)
title = "黑马程序员"
demo()
#全局变量不能定义在函数的下方
name = "小明"